package com.example.lala.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.lala.R;
import com.example.lala.bean.Money;

import java.util.List;

public class MoneyAdapter extends BaseQuickAdapter<Money.DataBean, BaseViewHolder> {
    public MoneyAdapter(int layoutResId, @Nullable List<Money.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Money.DataBean item) {
        helper.setText(R.id.tv,item.getProductname());
        helper.setText(R.id.tv1,item.getYieldrate()+"");
        helper.setText(R.id.tv2,item.getPaydays()+"天");
        helper.setText(R.id.tv3,"剩余金额："+item.getBalance());
    }
}
